/*
 * Copyright (C) 拾光分享网 
 * All rights reserved, Designed By www.hiai.top.
 * Email：goodsking@163.com.
 * Version：V1.0.2(20230701).
 */
package top.hiai.search;

import top.hiai.config.BaseController;

/**
 * @Author www.hiai.top
 * @Email goodsking@163.com
 * @Message 更多资源尽在www.hiai.top
 * @Introduction 类的介绍
 */

public class SearchController extends BaseController {

    SearchService srv = SearchService.me;

    public void index() {
        String q = get("q");
        setAttr("search", q);
        //获取搜索的文章信息，分页显示
        setAttr("articleSearch", srv.articleSearchPaginate(getParaToInt("p", 1), limtCount, q));

        render("search_result.html");
    }

}